package com.mach.platform.domain.iot;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @DESCRIPTION: 设备控制流程关联数据
 * @Info Administrator create on 2019/5/6 0006 13:29
 */
@Data
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
@Entity
@Table(name="iot_ctrl_process")
public class IotCtrlProcess implements Serializable {
    private static final long serialVersionUID = -7382762970449826279L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 控制设备ID
     */
    @Column(name = "dev_id")
    private Long devId;
    /**
     * 控制设备名称
     */
    private String name;

    /**
     * 具体的属性名
     */
    private String prop;
    /**
     * 命令
     */
    private String command;

    /**
     * 是否传参(0 不需要传参，1 需要传参)
     */
    @Column(name = "if_param", columnDefinition = "bit(1) default 0")
    private boolean ifParam;

    /**
     * 参数
     */
    private String param;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;
}
